<?php

namespace payment\contracts;

use Symfony\Component\HttpFoundation\Response;
use payment\supports\Collection;

interface GatewayInterface
{
    /**
     * Pay an order.
     *
     * @author laoqianjunzi <laoqianjunzi@qq.com>
     *
     * @param string $endpoint
     *
     * @return Collection|Response
     */
    public function pay($endpoint, array $payload);
}
